#
# Be sure to run `pod lib lint GHZeusLibraries.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name             = "DCDownload"
s.version          = "1.2"
s.summary          = "DCDownload is a library for mutable network download opration."
s.homepage         = "https://git.oschina.net/ddchub/DCDownload"
s.author           = { "Wade" => "391565320@qq.com" }
s.source           = { :git => "https://git.oschina.net/ddchub/DCDownload.git", :tag => s.version.to_s}

s.resources = 'DCDownload/DownloadCoreData/CoreDataFile/CPDownloadManager.xcdatamodeld'

pch_AF = <<-EOS
#ifndef TARGET_OS_IOS
#define TARGET_OS_IOS TARGET_OS_IPHONE
#endif

#ifndef TARGET_OS_WATCH
#define TARGET_OS_WATCH 0
#endif

EOS
s.prefix_header_contents = pch_AF
s.ios.deployment_target = '7.0'

    s.subspec 'DownloadCoreData' do |ss|
        ss.source_files = 'DCDownload/DownloadCoreData/Model/*.{h,m,xcdatamodeld}'

        ss.public_header_files = 'DCDownload/DownloadCoreData/Model/*.h'
    end

    s.subspec 'CPDownloadTools' do |ss|
        ss.source_files = 'DCDownload/CPDownloadTools/*.{h,m}'
        ss.public_header_files = 'DCDownload/CPDownloadTools/*.h'
    end

    s.subspec 'DonwloadManager' do |ss|
        ss.source_files = 'DCDownload/DonwloadManager/*.{h,m}'
        ss.public_header_files = 'DCDownload/DonwloadManager/*.h'
    end
end
